Reduce object allocations in SpotLightShadowRenderer#2515
Conversation
|
🖼️ Screenshot tests have failed. The purpose of these tests is to ensure that changes introduced in this PR don't break visual features. They are visual unit tests. 📄 Where to find the report:
✅ If you did mean to change things: ✨ If you are creating entirely new tests: Note; it is very important that the committed reference images are created on the build pipeline, locally created images are not reliable. Similarly tests will fail locally but you can look at the report to check they are "visually similar". See https://github.com/jMonkeyEngine/jmonkeyengine/blob/master/jme3-screenshot-tests/README.md for more information |
riccardobl
left a comment
There was a problem hiding this comment.
I think the minor issues in this PR are resolved now, should be good to go
This PR refactors the
SpotLightShadowRendererclass to improve code readability, consistency, and performance. Key changes include:Camera[] camerasin methods with a class-level field to avoid redundant allocations.These changes do not modify the core logic or functionality but streamline the implementation and improve maintainability.